package com.lcj.bff.customer.feign;

import com.lcj.bff.customer.controller.form.*;
import com.lcj.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-vhr")
public interface VhrServiceApi {

    @PostMapping("/voucher/customer/useVoucher")
    public Result useVoucher(UseVoucherForm form);

    @PostMapping("/voucher/searchUnTakeVoucherByPage")
    public Result searchUnTakeVoucherByPage(SearchCustomerVoucherByPageForm form);

    @PostMapping("/voucher/searchUnUseVoucherByPage")
    public Result searchUnUseVoucherByPage(SearchCustomerVoucherByPageForm form);

    @PostMapping("/voucher/searchUsedVoucherByPage")
    public Result searchUsedVoucherByPage(SearchCustomerVoucherByPageForm form);

    @PostMapping("/voucher/searchUnUseVoucherCount")
    public Result searchUnUseVoucherCount(CustomerIdForm form);

    @PostMapping("/voucher/takeVoucher")
    public Result takeVoucher(TakeVoucherForm form);

    @PostMapping("/voucher/searchBestUnUseVoucher")
    public Result searchBestUnUseVoucher(SearchBestUnUseVoucherForm form);
}